package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.List;

@Data
public class Role {
    //    为主键自增
    @TableId(type = IdType.AUTO)
    private Long rid;
    private String rname;
    private String createDate;
    @TableField(exist = false)  //表示该字段不是数据库表的字段
    private List<Menu> menus;
}
